<?php

/**
 * @Author: Wang Chunsheng 2192138785@qq.com
 * @Date:   2020-03-15 00:14:24
 * @Last Modified by:   Wang Chunsheng 2192138785@qq.com
 * @Last Modified time: 2020-03-15 00:14:25
 */


use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel common\models\DdCategorySearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Dd Categories';
$this->params['breadcrumbs'][] = $this->title;
?>
<ul class="nav nav-tabs">
    <li>
        <?= Html::a('添加 Dd Category', ['create'], ['class' => '']) ?>
    </li>
    <li class="active">
        <?= Html::a('Dd Category管理', ['index'], ['class' => 'btn btn-primary']) ?>
    </li>
</ul>
<div class="firetech-main" style="margin-top:20px;">

    <div class="box">
        <div class="box-body table-responsive">
            <div class="box-body">
                <?= GridView::widget([
                    'dataProvider' => $dataProvider,
                    'filterModel' => $searchModel,
                    'columns' => [
                        ['class' => 'yii\grid\SerialColumn'],

                        'category_id',
                        'name',
                        'parent_id',
                        'image_id',
                        'sort',
                        //'wxapp_id',
                        //'create_time:datetime',
                        //'update_time:datetime',

                        ['class' => 'yii\grid\ActionColumn'],
                    ],
                ]); ?>


            </div>
        </div>
    </div>
</div>